@use "sass:map";

.player {
  width: 100%;
  height: 2.5rem;
	padding: calc(map-get($spacers, 1) - 1px) map-get($spacers, 1);
	border: $border-default;
	display: flex;
	justify-content: space-between;
	overflow-x: hidden;
  color: white;

  &:not([class*="bg-"]) {
		background: rgba(50,50,50,.5);
	}

  .player-label {
		margin-right: map-get($spacers, 2);
		display: flex;
		align-items: center;
		flex-grow: 1;
		overflow: hidden;
		line-height: 1rem;

		.player-details {
			display: flex;
			flex-direction: column;
			overflow: hidden;

			.player-name {
				height: 1rem;
				padding: 0;
				border: none;
				outline: none;
				background: transparent;
				text-overflow: ellipsis;
			}
		}
	}
}

.player-icon {
  width: 2rem;
  height: 2rem;
  margin-right: map.get($spacers, 1);
  border-radius: 100%;
}
